import request from '@/utils/request'
export const authorizations = data => {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data,
    noToken: true
  })
}

export const userProfile = () => {
  return request({
    url: '/v1_0/user/profile'
  })
}

export const userProfilePatch = data => {
  return request({
    url: '/V1_0/user/profile',
    method: 'patch',
    data
  })
}

export const userPhotoPatch = data => {
  return request({
    url: '/v1_0/user/photo',
    method: 'patch',
    data
  })
}
